package service.impl;

import dao.AdminuserDao;
import pojo.Adminuser;
import service.AdminuserService;

import java.util.ArrayList;

public class AdminuserServiceImpl implements AdminuserService {
    public AdminuserDao getAdminuserDao() {
        return adminuserDao;
    }

    public void setAdminuserDao(AdminuserDao adminuserDao) {
        this.adminuserDao = adminuserDao;
    }

    AdminuserDao adminuserDao;


    @Override
    public ArrayList<Adminuser> getAdminuser() {
        return adminuserDao.getAdminuser();
    }

    @Override
    public boolean searchAdmin(String userName, String psw) {
        return adminuserDao.searchAdmin(userName,psw);
    }
}
